from machine import Pin
import time

pin = Pin(21, Pin.OUT, value = 0)

while True:
    print('high')
    pin.value(1)
    time.sleep(1)

    print('low')
    pin.value(0)
    time.sleep(1)